import {
  getCart
} from 'network/cart';
//异步处理使用
const actions = {
  updateCart({
    commit
  }) {
    getCart().then(res => {
      commit('addCart', {
        count: res.data.length || 0
      })
    })
  }
}

export default actions